home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / fgdemo10.zip / UTILITY.C < prev    next >
Text File  |  1991-10-02  |  4KB  |  122 lines

  1. /**********************************************************************\
  2. *                                                                      *
  3. *  utility.c -- Information about snapshot, clip and convert           *
  4. *                                                                      *
  5. \**********************************************************************/
  6.  
  7. #include "defs.h"
  8.  
  9. /**********************************************************************\
  10. *                                                                      *
  11. *  about_snapshot -- information about the snapshot utility            *
  12. *                                                                      *
  13. \**********************************************************************/
  14.  
  15. int about_snapshot()
  16. {
  17.    static char *string[] = {
  18.    "About SNAPSHOT",
  19.    "SNAPSHOT is a TSR that you can use to capture",
  20.    "graphic images and store them in pixel run files.",
  21.    "Use your favorite paint program, CAD program, or",
  22.    "any other method to display a graphic image and",
  23.    "then use SNAPSHOT to create a file that Fastgraph",
  24.    "can display."
  25.    };
  26.  
  27.    /* clear the screen and display the info window */
  28.  
  29.    fg_mousevis(OFF);
  30.    fg_restore(0,xlimit,menu_bottom,ylimit);
  31.    info_window(120,520,60,string,7);
  32.  
  33.    /* wait for a keystroke or mouse button */
  34.  
  35.    fg_mousevis(ON);
  36.    wait_for_keystroke();
  37.  
  38.    /* restore the screen and return to the menu */
  39.  
  40.    fg_mousevis(OFF);
  41.    fg_restore(0,xlimit,menu_bottom,ylimit);
  42.  
  43.    fg_mousevis(ON);
  44.    redraw = TRUE;
  45.  
  46.    return(OK);
  47. }
  48.  
  49. /**********************************************************************\
  50. *                                                                      *
  51. *  about_clip -- information about the clip utility                    *
  52. *                                                                      *
  53. \**********************************************************************/
  54.  
  55. int about_clip()
  56. {
  57.    static char *string[] = {
  58.    "About CLIP",
  59.    "CLIP is a utility program that you can",
  60.    "use to reduce the size of a pixel run file."
  61.    };
  62.  
  63.    /* clear the screen and display the info window */
  64.  
  65.    fg_mousevis(OFF);
  66.    fg_restore(0,xlimit,menu_bottom,ylimit);
  67.    info_window(136,504,60,string,3);
  68.  
  69.    /* wait for a keystroke or mouse button */
  70.  
  71.    fg_mousevis(ON);
  72.    wait_for_keystroke();
  73.  
  74.    /* restore the screen and return to the menu */
  75.  
  76.    fg_mousevis(OFF);
  77.    fg_restore(0,xlimit,menu_bottom,ylimit);
  78.  
  79.    fg_mousevis(ON);
  80.    redraw = TRUE;
  81.  
  82.    return(OK);
  83. }
  84.  
  85. /**********************************************************************\
  86. *                                                                      *
  87. *  about_convert -- information about the clip utility                 *
  88. *                                                                      *
  89. \**********************************************************************/
  90.  
  91. int about_convert()
  92. {
  93.    static char *string[] = {
  94.    "About CONVERT",
  95.    "CONVERT is a utility program that you can use to",
  96.    "translate pixel run files between standard format",
  97.    "and packed format.  If an image contains 16 or",
  98.    "fewer colors, you can pack it and save disk space."
  99.    };
  100.  
  101.    fg_mousevis(OFF);
  102.    /* clear the screen and display the info window */
  103.  
  104.    fg_restore(0,xlimit,menu_bottom,ylimit);
  105.    info_window(120,520,60,string,5);
  106.  
  107.    /* wait for a keystroke or mouse button */
  108.  
  109.    fg_mousevis(ON);
  110.    wait_for_keystroke();
  111.  
  112.    /* restore the screen and return to the menu */
  113.  
  114.    fg_mousevis(OFF);
  115.    fg_restore(0,xlimit,menu_bottom,ylimit);
  116.  
  117.    fg_mousevis(ON);
  118.    redraw = TRUE;
  119.  
  120.    return(OK);
  121. }
  122.